![]() |
CUSTOM Windows API Java Wrap 1.08
|
Classes | |
| enum | CashDrawerType |
| Cash Drawer connector pin. More... | |
| enum | CommunicationPortType |
| Communication port. More... | |
| enum | CutType |
| Paper cut type. More... | |
| enum | DevCounterType |
| Counter types supported by the devices. More... | |
| enum | EjectType |
| Eject paper type. More... | |
| enum | PaperAlignType |
| Paper alignment type. More... | |
| enum | TrPrintMode |
| Transaction Print. More... | |
Public Member Functions | |
| void | Terminate () throws Exception |
| Close the communication with the device. | |
| short | GetInfoPrinterId () throws Exception |
| Get the Printer ID. | |
| String | GetInfoFirmwareVersion () throws Exception |
| Get the Firmware Version. | |
| String | GetInfoDeviceModel () throws Exception |
| Get the Device Model. | |
| CommunicationPortType | GetCapCommPortType () throws Exception |
| Get the type of communication port used by the device. | |
| Boolean | GetCapPrintAvailable () throws Exception |
| Get if this device supports print functions. | |
| long | GetCapPrinterResolution () throws Exception |
| Get the print resolution of this device. | |
| long | GetCapPrintWidth () throws Exception |
| Get the print width of this device. | |
| void | SetCapPrintWidth (long uiNewPrintWidth) throws Exception |
| Set the print width of this device. | |
| String[] | GetCapCodepagesList () throws Exception |
| Get the list of all the codepages supported by the library / device. | |
| void | SetVirtualPaperEndLimit (long uiVirtualPaperEndLimitCm) throws Exception |
| Set the Virtual Paper End limit of this device. | |
| boolean | PrinterIsReady () throws Exception |
| Check if the device is ready. | |
| PrinterStatus | GetPrinterFullStatus () throws Exception |
| Get the status of this device. | |
| void | PrintText (String strText) throws Exception |
| Print text on a printer. | |
| void | PrintText (String strText, boolean bAddLF) throws Exception |
| Print text on a printer. | |
| void | PrintText (String strText, PrintFontSettings printFont) throws Exception |
| Print text on a printer. | |
| void | PrintText (String strText, PrintFontSettings printFont, boolean bAddLF) throws Exception |
| Print text on a printer. | |
| void | PrintImageFromPath (String strImageFilePath, PrintImageSettings printImage) throws Exception |
| Print image file from path. | |
| void | PrintRawImage (PrintImageSettings.RAWBitDepth bits, int[] pRawBuffer, int dwWidth, int dwHeight, PrintImageSettings printImage) throws Exception |
| Print RAW image buffer. | |
| void | PrintRawImage (PrintImageSettings.RAWBitDepth bits, byte[] pRawBuffer, int dwWidth, int dwHeight, PrintImageSettings printImage) throws Exception |
| Print RAW image buffer. | |
| void | PrintBitmapImage (BufferedImage bmpImage, PrintImageSettings printImage) throws Exception |
| Print Bitmap image. | |
| void | PrintBarcode (String strBrcText, PrintBarcodeSettings printBarcode) throws Exception |
| Print barcode file from String. | |
| void | PrintBarcode (int[] bBrcBuffer, PrintBarcodeSettings printBarcode) throws Exception |
| Print barcode file from buffer. | |
| void | PrintBarcode (byte[] bBrcBuffer, PrintBarcodeSettings printBarcode) throws Exception |
| Print barcode file from buffer. | |
| void | SetIgnoreWhiteImages (boolean bIgnore) throws Exception |
| Set if ignore, or not, the white Images. | |
| void | SetGrModeToBlackWhite (PrintImageSettings.ImageGRMode imgGrModeType, int bThreshold) throws Exception |
| Set the graphic conversion mode to Black/White and, if necessary, the threshold. | |
| void | SetPageModeToRoll (boolean bRollMode) throws Exception |
| Set the page mode print to Roll mode. | |
| void | SetGraphicsTopMargin (long uiTopMargin) throws Exception |
| Set the top margin added to the graphics print. | |
| long | GetGraphicsTopMargin () throws Exception |
| Get the top margin added to the graphics print. | |
| long | CommGetReadTimeout () throws Exception |
| Get the read timeout of the communication port of this device. | |
| void | CommSetReadTimeout (long uiRTimeout) throws Exception |
| Set the read timeout of the communication port of this device. | |
| long | CommGetWriteTimeout () throws Exception |
| Get the write timeout of the communication port of this device. | |
| void | CommSetWriteTimeout (long uiWTimeout) throws Exception |
| Set the write timeout of the communication port of this device. | |
| void | CommClearReadBuffer () throws Exception |
| Clean the read buffer of the communication port of this device. | |
| void | CommClearWriteBuffer () throws Exception |
| Clean the write buffer of the communication port of this device. | |
| int[] | CommReadI () throws Exception |
| Direct read from communication port of this device. | |
| byte[] | CommReadB () throws Exception |
| Direct read from communication port of this device. | |
| int | CommWrite (int[] bDataToWrite) throws Exception |
| Direct write to communication port of this device. | |
| int | CommWrite (byte[] bDataToWrite) throws Exception |
| Direct write to communication port of this device. | |
| void | TransactionPrint (CuCustomWndDevice.TrPrintMode tpMode) throws Exception |
| Manage the Transaction Print of the device. | |
| void | Feed (long nFeeds) throws Exception |
| Send line feed commands to the device. | |
| void | Cut (CuCustomWndDevice.CutType cuttype) throws Exception |
| Send cut command to the device. | |
| void | Eject (CuCustomWndDevice.EjectType ejtype) throws Exception |
| Send eject command to the device. | |
| void | EjectWithTimeout (CuCustomWndDevice.EjectType ejtype, int timeOutms) throws Exception |
| Send eject with a timeout command to the device. | |
| void | Present (long presentMM) throws Exception |
| Send presentation command to the device. | |
| void | Align (CuCustomWndDevice.PaperAlignType aligntype) throws Exception |
| Send align command to the device. | |
| void | OpenCashDrawer (CuCustomWndDevice.CashDrawerType drawertype, int timeOn, int timeOff) throws Exception |
| Generate pulse on the drawer connector. | |
| void | ResetDevice (boolean bWaitReset) throws Exception |
| Reset the device. | |
| void | DeletePrinterInternalQueue () throws Exception |
| Clear / Delete the internal queue of the device. | |
| int | GetCounter (DevCounterType devCounter) throws Exception |
| Get a device counter. | |
| String | toString () |
Protected Member Functions | |
| CuCustomWndDevice (int _deviceID, LibraryC _llLibrary) | |
| void | finalize () throws Exception |
| Destructor. | |
|
inlineprotected |
|
inline |
Send align command to the device.
| aligntype | the CuCustomWndDevice.PaperAlignType type to send to the device. |
| CuCustomWndAPIJWrapException |
|
inline |
Clean the read buffer of the communication port of this device.
| CuCustomWndAPIJWrapException |
|
inline |
Clean the write buffer of the communication port of this device.
| CuCustomWndAPIJWrapException |
|
inline |
Get the read timeout of the communication port of this device.
| CuCustomWndAPIJWrapException |
|
inline |
Get the write timeout of the communication port of this device.
| CuCustomWndAPIJWrapException |
|
inline |
Direct read from communication port of this device.
| CuCustomWndAPIJWrapException |
|
inline |
Direct read from communication port of this device.
| CuCustomWndAPIJWrapException |
|
inline |
Set the read timeout of the communication port of this device.
| uiRTimeout | the number that is the new read timeout (msec), for the communication port, of this device. |
| CuCustomWndAPIJWrapException |
|
inline |
Set the write timeout of the communication port of this device.
| uiWTimeout | the number that is the new write timeout (msec), for the communication port, of this device. |
| CuCustomWndAPIJWrapException |
|
inline |
Direct write to communication port of this device.
| bDataToWrite | buffer to send. |
| CuCustomWndAPIJWrapException |
|
inline |
Direct write to communication port of this device.
| bDataToWrite | buffer to send. |
| CuCustomWndAPIJWrapException |
|
inline |
Send cut command to the device.
| cuttype | the CuCustomWndDevice.CutType type to send to the device. |
| CuCustomWndAPIJWrapException |
|
inline |
Clear / Delete the internal queue of the device.
| CuCustomWndAPIJWrapException |
|
inline |
Send eject command to the device.
| ejtype | the CuCustomWndDevice.EjectType type to send to the device. |
| CuCustomWndAPIJWrapException |
|
inline |
Send eject with a timeout command to the device.
| ejtype | the CuCustomWndDevice.EjectType type to send to the device. |
| timeOutms | the time in milliseconds after which the movement is performed. |
| CuCustomWndAPIJWrapException |
|
inline |
Send line feed commands to the device.
| nFeeds | The number of line feed to send to the device. |
| CuCustomWndAPIJWrapException |
|
inlineprotected |
Destructor.
|
inline |
Get the list of all the codepages supported by the library / device.
| CuCustomWndAPIJWrapException |
|
inline |
Get the type of communication port used by the device.
| CuCustomWndAPIJWrapException |
|
inline |
Get if this device supports print functions.
| CuCustomWndAPIJWrapException |
|
inline |
Get the print resolution of this device.
| CuCustomWndAPIJWrapException |
|
inline |
Get the print width of this device.
| CuCustomWndAPIJWrapException |
|
inline |
Get a device counter.
| devCounter | The DevCounter that identify the counter to get from the device. |
| CuCustomWndAPIJWrapException |
|
inline |
Get the top margin added to the graphics print.
| CuCustomWndAPIJWrapException |
|
inline |
Get the Device Model.
| CuCustomWndAPIJWrapException |
|
inline |
Get the Firmware Version.
| CuCustomWndAPIJWrapException |
|
inline |
Get the Printer ID.
| CuCustomWndAPIJWrapException |
|
inline |
Get the status of this device.
| CuCustomWndAPIJWrapException |
|
inline |
Generate pulse on the drawer connector.
| drawertype | the CuCustomWndDevice.CashDrawerType connector pin type |
| timeOn | the pulse ON time in milliseconds |
| timeOff | the pulse OFF time in milliseconds |
| CuCustomWndAPIJWrapException |
|
inline |
Send presentation command to the device.
| presentMM | the value (mm) of the presentation to send to the device. |
| CuCustomWndAPIJWrapException |
|
inline |
Print barcode file from buffer.
| bBrcBuffer | The buffer to print into barcode. |
| printBarcode | the PrintBarcodeSettings with all the parameters / Attributes to use to print the barcode. |
| CuCustomWndAPIJWrapException |
|
inline |
Print barcode file from buffer.
| bBrcBuffer | The buffer to print into barcode. |
| printBarcode | the PrintBarcodeSettings with all the parameters / Attributes to use to print the barcode. |
| CuCustomWndAPIJWrapException |
|
inline |
Print barcode file from String.
| strBrcText | The text string to print into barcode. |
| printBarcode | the PrintBarcodeSettings with all the parameters / Attributes to use to print the barcode. |
| CuCustomWndAPIJWrapException |
|
inline |
Print Bitmap image.
| bmpImage | the bitmap to print. |
| printImage | The PrintImageSettings with all the parameters / Attributes to use to print the image. |
| CuCustomWndAPIJWrapException |
|
inline |
Check if the device is ready.
| CuCustomWndAPIJWrapException |
|
inline |
Print image file from path.
| strImageFilePath | string with the image file path. |
| printImage | The PrintImageSettings with all the parameters / Attributes to use to print the image. |
| CuCustomWndAPIJWrapException |
|
inline |
Print RAW image buffer.
| bits | the bit deph of the RAW data. |
| pRawBuffer | RAW buffer to print. |
| dwWidth | width (pixels/dots) of the of RAW image. |
| dwHeight | height (pixels/dots) of the of RAW image. |
| printImage | The PrintImageSettings with all the parameters / Attributes to use to print the image. |
| CuCustomWndAPIJWrapException |
|
inline |
Print RAW image buffer.
| bits | the bit deph of the RAW data. |
| pRawBuffer | RAW buffer to print. |
| dwWidth | width (pixels/dots) of the of RAW image. |
| dwHeight | height (pixels/dots) of the of RAW image. |
| printImage | The PrintImageSettings with all the parameters / Attributes to use to print the image. |
| CuCustomWndAPIJWrapException |
|
inline |
Print text on a printer.
| strText | The text string to print. |
| CuCustomWndAPIJWrapException |
|
inline |
Print text on a printer.
| strText | The text string to print. |
| bAddLF | The boolean that is TRUE if must be send a line feed command after the text. |
| CuCustomWndAPIJWrapException |
|
inline |
Print text on a printer.
| strText | The text string to print. |
| printFont | The PrintFontSettings with all the parameters / Attributes to use to print the text. |
| CuCustomWndAPIJWrapException |
|
inline |
Print text on a printer.
| strText | The text string to print. |
| printFont | The PrintFontSettings with all the parameters / Attributes to use to print the text. |
| bAddLF | The boolean that is TRUE if must be send a line feed command after the text. |
| CuCustomWndAPIJWrapException |
|
inline |
Reset the device.
| bWaitReset | The boolean that is TRUE if must be wait the reset and the re-open before exit. If bWaitReset is FALSE, must be close and re-open the device communcation before continue. |
| CuCustomWndAPIJWrapException |
|
inline |
Set the print width of this device.
| uiNewPrintWidth | A number that is the new print width (dots) of this device. |
| CuCustomWndAPIJWrapException |
|
inline |
Set the top margin added to the graphics print.
| uiTopMargin | The fixed top margin (dots) added to every print in graphics mode (default is 16). |
| CuCustomWndAPIJWrapException |
|
inline |
Set the graphic conversion mode to Black/White and, if necessary, the threshold.
| imgGrModeType | the PrintImageSettings.ImageGRMode conversion to black / white mode. |
| bThreshold | the threshold value to use (only for PrintImageSettings.ImageGRMode.IMAGE_GRMODE_THRESHOLD mode). |
| CuCustomWndAPIJWrapException |
|
inline |
Set if ignore, or not, the white Images.
| bIgnore | The boolean that is TRUE when a totally white Image must be ignored and not print (default is FALSE). |
| CuCustomWndAPIJWrapException |
|
inline |
Set the page mode print to Roll mode.
| bRollMode | The boolean that is TRUE when the printer prints until the last not white line (default is FALSE). |
| CuCustomWndAPIJWrapException |
|
inline |
Set the Virtual Paper End limit of this device.
| uiVirtualPaperEndLimitCm | A number that will be the virtual paper end limit, expressed in cm, of this device (for e.g. "1500" is to set 15m). |
| CuCustomWndAPIJWrapException |
|
inline |
Close the communication with the device.
| CuCustomWndAPIJWrapException |
|
inline |
Convert the deviceID to a String
|
inline |
Manage the Transaction Print of the device.
| tpMode | the CuCustomWndDevice.TrPrintMode type to send to the device. |
| CuCustomWndAPIJWrapException |